<template name="oembedSpotifyWidget">
	{{#if parsedUrl}}
		<blockquote class="message-oembed background-transparent-darker-before">
			<a href="https://www.spotify.com" rel="noopener noreferrer" style="color: #9e9ea6">Spotify</a><br/>
			{{#if match meta.ogAudio "spotify:artist:\\S+"}}
				<a rel="noopener noreferrer" href="{{url}}" target="_blank">{{{meta.ogTitle}}}</a>
			{{else}}
				<a rel="noopener noreferrer" href="{{url}}" target="_blank">{{{replace meta.ogDescription ", an? (?:song|album) by (.+?) on Spotify" " - $1" regex=true}}}</a>
			{{/if}}
                        {{> collapseArrow collapsedMedia=collapsedMediaVar}} <br>
                        {{#unless collapsed}}
                                <iframe width="300" height="380" src="{{meta.twitterPlayer}}" rel="noopener noreferrer" frameborder="0"></iframe><br>
                        {{/unless}}
		</blockquote>
	{{/if}}
</template>
